from django.conf.urls import url, include
# from rest_framework import routers
from . import views

# router = routers.DefaultRouter()
# router.register(r'users', views.UserViewSet)
# router.register(r'groups', views.GroupViewSet)

# 使用自动URL路由连接我们的API。
# 另外，我们还包括支持浏览器浏览API的登录URL。
urlpatterns = [
    url(r'^blog/$', views.index),
    url(r'^blog/news/$', views.news),
    url(r'^blog/news/(?P<pk>[0-9]+)/$', views.newsDetail),

]